<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>这是宏练习</title>
</head>
<body>
{% macro input(name,type="text",value='') %}
    <input name="{{name}}" type="{{type}}" value="{{value}}">
{% endmacro %}

<table>
    <tbody>
    <tr>
        <td>用户名:</td>
        <td>{{input(name="username")}}</td>
        
    </tr>
    <tr>
        <td>密码:</td>
        <td>{{input(name="password",type="password")}}</td>
    </tr>
    <tr>
        <td>{{input(name="提交",type="submit",value="提交")}}</td>
    </tr>
    </tbody>
</table>
</body>
</html>